package com.guoxue.service.impl;

import com.guoxue.dao.IRechargeDao;
import com.guoxue.domain.RechargeVo;
import com.guoxue.service.IRechargeService;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class RechargeServiceImpl implements IRechargeService {

	@Resource
	private IRechargeDao rechargeDao;

	public void saveRecharge(RechargeVo rechargeVo) {
		this.rechargeDao.saveRecharge(rechargeVo);
	}

	@Override
	public RechargeVo getRecharge(String outTradeNo) {
		return rechargeDao.getRecharge(outTradeNo);
	}

	@Override
	public RechargeVo getRechargeCardNo(String cardNo,String payStatus) {
		return rechargeDao.getRechargeCardNo(cardNo,payStatus);
	}

	@Override
	public RechargeVo getRechargeCardNo(String cardNo, int i) {
		return rechargeDao.getRechargeCardNo(cardNo,i);
	}
}